class MessageNumResponse {
  int totalNum;
  int operateNum;
  int followNum;
  int commentNum;

  MessageNumResponse({
    this.totalNum = 0,
    this.operateNum = 0,
    this.followNum = 0,
    this.commentNum = 0,
  });

  factory MessageNumResponse.fromJson(Map<String, dynamic> json) {
    return MessageNumResponse(
      totalNum: json['totalNum'] as int,
      operateNum: json['operateNum'] as int,
      followNum: json['followNum'] as int,
      commentNum: json['commentNum'] as int,
    );
  }

  Map<String, dynamic> toJson() => {
        'totalNum': totalNum,
        'operateNum': operateNum,
        'followNum': followNum,
        'commentNum': commentNum,
      };
}
